home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jun 89 / V0094-Re C++ Reference Co-Jun89 < prev    next >
Encoding:
Text File  |  1989-07-12  |  688 b   |  22 lines  |  [TEXT/GEOL]

  1. Item    5574775                         29-June-89        16:15
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     PASCOE1                         Pascoe, Geoff
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    re C++ Reference Counting
  10.  
  11. Geoff,
  12.  
  13. In C++ you can do reference counting by defining a class TFooPtr, and
  14. overloading the assignment, and dereferencing operations.  Provided everyone
  15. else uses TFooPtr objects instead of *TFoo, the reference counting will work.
  16. (There are still some ways to break the system, but it is realtively easy to
  17. watch out for those.)  You also need to define a separate pointer class for
  18. each object class.
  19.  
  20. Larry
  21.  
  22.